<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	<link href="Public/Admin/css/style.css" type="text/css" rel="stylesheet" />
    <link href="Public/Admin/css/skin/fonts/font-awesome.min.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="Public/Admin/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="Public/Admin/js/effect.js"></script>
	<script type="text/javascript" src="Public/Admin/js/common.js"></script>
</head>
<body class="mainbody">
<!--导航栏-->
<div class="location">
  <a href="{{U('Cate/index')}}" class="back"><i></i><span>返回列表页</span></a>
  <a href="{{U('Index/index')}}" class="home" target="_blank"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <a href="{{U('Cate/add')}}"><span>分类管理</span></a>
  <i class="arrow"></i>
  <span>编辑分类</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div id="floatHead" class="content-tab-wrap" style="height: 42px;">
  <div class="content-tab" style="width: 1693px;">
    <div class="content-tab-ul-wrap">
      <div class="tab-title"><span>基本信息</span><i></i></div><ul>
        <li><a class="selected" href="javascript:;">编辑分类</a></li>
      </ul>
    </div>
  </div>
</div>

<form action="" method="post">
<div class="tab-content" style="display: block;">
	<dl>
    	<dt>分类名称</dt>
    	<dd><input  type="text" placeholder="请输入分类名称"  name="cname" class="input normal" value="{{$oldData['cname']}}">
    	<span class="Validform_checktip">*分类名称，20字符内</span></dd>
    </dl>
  	<dl>
    	<dt>所属分类</dt>
    	<dd>
	        <select name="pid" style="border:1px solid #eee;color:#333;">
				<option value="0">顶级分类</option>
				{{foreach from="$cateData" value="$v"}}
					<option value="{{$v['cid']}}" {{if value="$oldData['pid'] == $v['cid']"}}selected{{endif}} >{{$v['_name']}}</option>
				{{endforeach}}
			</select>
    	</dd>
    </dl> 
  	<dl>
	    <dt>分类排序</dt>
	    <dd>
	      <input  type="text" placeholder="请输入分类排序"  name="sort" value="100" class="input small" onkeydown="return checkNumber(event);" value="{{$oldData['sort']}}">
	      <input type="hidden" name="cid" value="{{$_GET['cid']}}" />
	      <span class="Validform_checktip">*数字，默认100</span>
	    </dd>
  	</dl> 
  	<dl>
	    <dt>所属类型</dt>
	    <dd>
	 		<select name="type_tid"  style="border:1px solid #eee;" >
				<option value="">请选择</option>
					{{foreach from="$TypeData" value="$v"}}
						<option value="{{$v['tid']}}" {{if value="$oldData['type_tid'] == $v['tid']"}}selected{{endif}}>{{$v['tname']}}</option>
					{{endforeach}}
			</select>
	    </dd>
    </dl>
    
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-wrap" style="position: static;">
    <input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn">
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);">
  </div>
</div>
</form>
<!--/工具栏-->		
		
</body>
</html>
